<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>猫头鹰</title>
  <!-- lqpcss -->
  <link rel="stylesheet" href="../../dist/css/lqp.css">
</head>
<body class="hold-transition sidebar-mini">
<div class="wrapper">
  <!-- 导航栏 -->
  <nav class="main-header navbar navbar-expand navbar-white navbar-light">
    <!-- Left navbar links -->
    <ul class="navbar-nav">
      <li class="nav-item">
        <a class="nav-link" data-widget="pushmenu" href="#" role="button"><i class="fas fa-bars"></i></a>
      </li>
      <li class="nav-item d-none d-sm-inline-block">
        <a href="index3.html" class="nav-link">Home1</a>
      </li>
      <li class="nav-item d-none d-sm-inline-block">
        <a href="#" class="nav-link">Contact</a>
      </li>
    </ul>

    <!-- SEARCH FORM -->
    <form class="form-inline ml-3">
      <div class="input-group input-group-sm">
        <input class="form-control form-control-navbar" type="search" placeholder="Search" aria-label="Search">
        <div class="input-group-append">
          <button class="btn btn-navbar" type="submit">
            <i class="fas fa-search"></i>
          </button>
        </div>
      </div>
    </form>

    <!-- Right navbar links -->
    <ul class="navbar-nav ml-auto">
      <!-- Messages Dropdown Menu -->
      <li class="nav-item dropdown">
        <a class="nav-link" data-toggle="dropdown" href="#">
          <i class="far fa-comments"></i>
          <span class="badge badge-danger navbar-badge">3</span>
        </a>
        <div class="dropdown-menu dropdown-menu-lg dropdown-menu-right">
          <a href="#" class="dropdown-item">
            <!-- Message Start -->
            <div class="media">
              <img src="dist/img/user1-128x128.jpg" alt="User Avatar" class="img-size-50 mr-3 img-circle">
              <div class="media-body">
                <h3 class="dropdown-item-title">
                  Brad Diesel
                  <span class="float-right text-sm text-danger"><i class="fas fa-star"></i></span>
                </h3>
                <p class="text-sm">Call me whenever you can...</p>
                <p class="text-sm text-muted"><i class="far fa-clock mr-1"></i> 4 Hours Ago</p>
              </div>
            </div>
            <!-- Message End -->
          </a>
          <div class="dropdown-divider"></div>
          <a href="#" class="dropdown-item">
            <!-- Message Start -->
            <div class="media">
              <img src="dist/img/user8-128x128.jpg" alt="User Avatar" class="img-size-50 img-circle mr-3">
              <div class="media-body">
                <h3 class="dropdown-item-title">
                  John Pierce
                  <span class="float-right text-sm text-muted"><i class="fas fa-star"></i></span>
                </h3>
                <p class="text-sm">I got your message bro</p>
                <p class="text-sm text-muted"><i class="far fa-clock mr-1"></i> 4 Hours Ago</p>
              </div>
            </div>
            <!-- Message End -->
          </a>
          <div class="dropdown-divider"></div>
          <a href="#" class="dropdown-item">
            <!-- Message Start -->
            <div class="media">
              <img src="dist/img/user3-128x128.jpg" alt="User Avatar" class="img-size-50 img-circle mr-3">
              <div class="media-body">
                <h3 class="dropdown-item-title">
                  Nora Silvester
                  <span class="float-right text-sm text-warning"><i class="fas fa-star"></i></span>
                </h3>
                <p class="text-sm">The subject goes here</p>
                <p class="text-sm text-muted"><i class="far fa-clock mr-1"></i> 4 Hours Ago</p>
              </div>
            </div>
            <!-- Message End -->
          </a>
          <div class="dropdown-divider"></div>
          <a href="#" class="dropdown-item dropdown-footer">See All Messages</a>
        </div>
      </li>
      <!-- Notifications Dropdown Menu -->
      <li class="nav-item dropdown">
        <a class="nav-link" data-toggle="dropdown" href="#">
          <i class="far fa-bell"></i>
          <span class="badge badge-warning navbar-badge">15</span>
        </a>
        <div class="dropdown-menu dropdown-menu-lg dropdown-menu-right">
          <span class="dropdown-item dropdown-header">15 Notifications</span>
          <div class="dropdown-divider"></div>
          <a href="#" class="dropdown-item">
            <i class="fas fa-envelope mr-2"></i> 4 new messages
            <span class="float-right text-muted text-sm">3 mins</span>
          </a>
          <div class="dropdown-divider"></div>
          <a href="#" class="dropdown-item">
            <i class="fas fa-users mr-2"></i> 8 friend requests
            <span class="float-right text-muted text-sm">12 hours</span>
          </a>
          <div class="dropdown-divider"></div>
          <a href="#" class="dropdown-item">
            <i class="fas fa-file mr-2"></i> 3 new reports
            <span class="float-right text-muted text-sm">2 days</span>
          </a>
          <div class="dropdown-divider"></div>
          <a href="#" class="dropdown-item dropdown-footer">See All Notifications</a>
        </div>
      </li>
      <li class="nav-item">
        <a class="nav-link" data-widget="fullscreen" href="#" role="button">
          <i class="fas fa-expand-arrows-alt"></i>
        </a>
      </li>
      <li class="nav-item">
        <a class="nav-link" data-widget="control-sidebar" data-slide="true" href="#" role="button">
          <i class="fas fa-th-large"></i>
        </a>
      </li>
    </ul>
  </nav>
  <!-- 侧边栏-->
  <aside class="main-sidebar sidebar-light-white elevation-4">
    <!-- Brand Logo -->
    <a href="index3.html" class="brand-link">
      <img src="dist/img/AdminLTELogo.png" alt="AdminLTE Logo" class="brand-image img-circle elevation-3"
           style="opacity: .8">
      <span class="brand-text font-weight-light">logo</span>
    </a>

    <!-- Sidebar -->
    <div class="sidebar">
      <!-- Sidebar user panel (optional) -->
      <div class="user-panel mt-3 pb-3 mb-3 d-flex">
        <div class="image">
          <img src="dist/img/user2-160x160.jpg" class="img-circle elevation-2" alt="User Image">
        </div>
        <div class="info">
          <a href="#" class="d-block">管理员</a>
          <span class="rounded-circle bg-info l-circle"></span><span>在线</span>
        </div>
      </div>

      <!-- SidebarSearch Form -->
      <div class="form-inline">
        <div class="input-group input-group-sm" data-widget="sidebar-search">
          <input class="form-control form-control-sidebar" type="search" placeholder="Search" aria-label="Search">
          <div class="input-group-append">
            <button class="btn btn-sidebar">
              <i class="fas fa-search fa-fw"></i>
            </button>
          </div>
        </div>
      </div>
      <nav class="mt-2">
        <ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu" data-accordion="false">
          <div class="nav-item">
            <a href="./index.html" class="nav-link active">
              <i class="nav-icon fas fa-tachometer-alt"></i>
              <p>控制台<span class="badge badge-info right">6</span></p>
            </a>
          </div>
          <!--  试题管理 -->
          <li class="nav-item">
            <a href="#" class="nav-link">
              <i class="nav-icon fas fa-tachometer-alt"></i>
              <p>
                试题管理
                <i class="right fas fa-angle-left"></i>
              </p>
            </a>
            <ul class="nav nav-treeview">
              <li class="nav-item">
                <a href="./radio.html" class="nav-link active">
                  <i class="far fa-circle nav-icon"></i>
                  <p>单选题</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="./multiplechoice.html" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>多选题</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="./judge.html" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>判断题</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="./completion.html" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>填空题</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="./QandA.html" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>问答题</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="./understanding.html" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>理解题</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="./other.html" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>其它题</p>
                </a>
              </li>
            </ul>
          </li>
          <!--          考试管理-->
          <li class="nav-item">
            <a href="#" class="nav-link">
              <i class="nav-icon fas fa-copy"></i>
              <p>
                考试管理
                <i class="fas fa-angle-left right"></i>
                <span class="badge badge-info right">6</span>
              </p>
            </a>
            <ul class="nav nav-treeview">
              <li class="nav-item">
                <a href="pages/test/testpaper.html" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>试卷管理</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="pages/test/release.html" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>发布考试</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="pages/test/examinationpaper.html" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>考卷管理</p>
                </a>
              </li>
            </ul>
          </li>
          <!--          练习管理-->
          <li class="nav-item">
            <a href="#" class="nav-link">
              <i class="nav-icon fas fa-chart-pie"></i>
              <p>
                练习管理
                <i class="right fas fa-angle-left"></i>
              </p>
            </a>
            <ul class="nav nav-treeview">
              <!--              <li class="nav-item">-->
              <!--                <i class="far fa-circle nav-icon text-sm text-primary"></i>-->
              <!--                <button type="button" class="btn btn-default border-0 text-sm" data-toggle="modal" data-target="#modal-xl">-->
              <!--                  发布练习-->
              <!--                </button>-->
              <!--              </li>-->
              <li class="nav-item">
                <a href="pages/practice/publishpractice.html" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>发布练习</p>
                </a>
              </li>
            </ul>
          </li>
          <!--          证书管理-->
          <li class="nav-item">
            <a href="pages/certificate/certificate.html" class="nav-link">
              <i class="nav-icon fas fa-tree"></i>
              <p>
                证书管理
                <i class="fas fa-angle-left right"></i>
              </p>
            </a>
            <ul class="nav nav-treeview">
              <li class="nav-item">
                <a href="pages/certificate/certificate.html" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p> 证书管理</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="pages/certificate/addcertificate.html" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>添加证书</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="pages/certificate/record.html" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>发放记录</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="pages/certificate/addtemplate.html" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>添加模板</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="pages/certificate/Template.html" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>模板管理</p>
                </a>
              </li>
            </ul>
          </li>
          <!--          用户管理-->
          <li class="nav-item">
            <a href="#" class="nav-link">
              <i class="nav-icon fas fa-edit"></i>
              <p>
                用户管理
                <i class="fas fa-angle-left right"></i>
              </p>
            </a>
            <ul class="nav nav-treeview">
              <li class="nav-item">
                <a href="pages/users/Departmentstaff.html" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>部门人员</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="pages/users/Departmentmanagement.html" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>部门管理</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="pages/users/Personnelanalysis.html" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>人员分析</p>
                </a>
              </li>
            </ul>
          </li>
          <!--          发布试卷-->
          <li class="nav-item">
            <a href="#" class="nav-link">
              <i class="nav-icon fas fa-edit"></i>
              <p>
                发布试卷
                <i class="fas fa-angle-left right"></i>
              </p>
            </a>
            <ul class="nav nav-treeview">
              <li class="nav-item">
                <a href="pages/publish/addtestpaper.html" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>添加试卷</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="pages/publish/importusers.html" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>导入人员</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="pages/publish/addusers.html" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>添加人员</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="pages/publish/addcertificate.html" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>添加证书</p>
                </a>
              </li>
            </ul>
          </li>
          <!--          公告管理-->
          <li class="nav-item">
            <a href="#" class="nav-link">
              <i class="nav-icon fas fa-table"></i>
              <p>
                公告管理
                <i class="fas fa-angle-left right"></i>
              </p>
            </a>
            <ul class="nav nav-treeview">
              <li class="nav-item">
                <a href="pages/Notice/notices.html" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>发布公告</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="pages/Notice/noticesmanegment.html" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>公告管理</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="pages/Notice/information.html" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>发布信息</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="pages/Notice/informationmanegment.html" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>信息管理</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="pages/Notice/News.html" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>发布新闻</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="pages/Notice/Newsmanagement.html" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>新闻管理</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="pages/Notice/checknotice.html" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>查看公告</p>
                </a>
              </li>
            </ul>
          </li>
          <!--         统计分析-->
          <li class="nav-item">
            <a href="#" class="nav-link">
              <i class="nav-icon fas fa-table"></i>
              <p>
                统计分析
                <i class="fas fa-angle-left right"></i>
              </p>
            </a>
            <ul class="nav nav-treeview">
              <li class="nav-item">
                <a href="pages/analysis/Performance.html" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p> 成绩分析</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="pages/analysis/testquestions.html" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>试题分析</p>
                </a>
              </li>

            </ul>
          </li>
        </ul>
      </nav>
    </div>
  </aside>

  <div class="content-wrapper">
    <section class="content-header">
      <div class="container-fluid">
        <div class="row mb-2">
          <div class="col-sm-6">
            <h1>单选题</h1>
          </div>
          <div class="col-sm-6">
            <ol class="breadcrumb float-sm-right">
              <li class="breadcrumb-item"><i class="fa fa-map-marker text-info pr-3 pt-2" aria-hidden="true"></i><span>位置：首页</span>
              </li>
              <li class="breadcrumb-item active">单选题</li>
            </ol>
          </div>
        </div>
      </div><!-- /.container-fluid -->
    </section>

    <!-- 表格 -->
    <section class="content">
      <div class="container-fluid">
        <div class="row">
          <div class="col-md-2">
            <div class="card card-info card-outline">
              <div class="card-header py-2 border-bottom-0">
                <div class="row">
                  <div class="col">
                    <div class="input-group input-group-sm">
                      <input type="text" class="form-control" placeholder="搜索分类">
                      <div class="input-group-append">
                        <div class="btn btn-info">
                          <i class="fas fa-search pl-2"></i>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
              <!-- ./card-header -->
              <div class="card-body px-0 pt-0">
                <table class="table table-hover">
                  <tbody>
                  <tr data-widget="expandable-table" aria-expanded="true">
                    <td>
                      <i class="fas fa-caret-right fa-fw"></i>
                      单选题分类
                    </td>
                  </tr>
                  <tr class="expandable-body">
                    <td>
                      <div class="p-0">
                        <table class="table table-hover">
                          <tbody>
                          <tr data-widget="expandable-table" aria-expanded="false">
                            <td>
                              <i class="fas fa-caret-right fa-fw"></i>
                              单选题分类
                            </td>
                          </tr>
                          <tr class="expandable-body d-none">
                            <td>
                              <div class="p-0" style="display: none;">
                                <table class="table table-hover">
                                  <tbody>
                                  <tr>
                                    <td><a href="#" class="text-black">新建单选题分类-1</a></td>
                                  </tr>
                                  <tr>
                                    <td>新建单选题分类-2</td>
                                  </tr>
                                  <tr>
                                    <td>新建单选题分类-3</td>
                                  </tr>
                                  </tbody>
                                </table>
                              </div>
                            </td>
                          </tr>
                          <tr data-widget="expandable-table" aria-expanded="false">
                            <td>
                              <i class="fas fa-caret-right fa-fw"></i>
                              多选题分类
                            </td>
                          </tr>
                          <tr class="expandable-body d-none">
                            <td>
                              <div class="p-0" style="display: none;">
                                <table class="table table-hover">
                                  <tbody>
                                  <tr>
                                    <td>新建单选题分类-1</td>
                                  </tr>
                                  <tr>
                                    <td>新建单选题分类-2</td>
                                  </tr>
                                  <tr>
                                    <td>新建单选题分类-3</td>
                                  </tr>
                                  </tbody>
                                </table>
                              </div>
                            </td>
                          </tr>
                          </tbody>
                        </table>
                      </div>
                    </td>
                  </tr>
                  </tbody>
                </table>
              </div>
              <!-- /.card-body -->
            </div>
            <!-- /.card -->
          </div>
          <div class="col-md-10">
            <div class="card card-outline card-info">
              <div class="card-header">
                <div class="card-tools">
                  <div class="input-group input-group-sm">
                    <input type="text" class="form-control" placeholder="请输入题目名称">
                    <div class="input-group-append">
                      <div class="btn btn-info">
                        <i class="fas fa-search pl-2"></i>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
              <div class="card-body p-0">
                <div class="mailbox-controls">
                  <!-- Check all button -->
                  <button type="button" class="btn btn-default btn-sm checkbox-toggle">
                    <i class="far fa-square"></i>
                  </button>
                  <div class="btn-group">
                    <button type="button" class="btn btn-default btn-sm" data-toggle="modal" data-target="#modal-xl">
                      <i class="far fa-plus-square pr-1 text-info"></i>新增试题
                    </button>
                    <button type="button" class="btn btn-default btn-sm batchdel">
                      <i class="far fa-trash-alt pr-1 text-danger"></i>批量删除
                    </button>
                    <button type="button" class="btn btn-default btn-sm">
                      <i class="fas fa-file-download text-success pr-1"></i>批量导入
                    </button>
                    <button type="button" class="btn btn-default btn-sm">
                      <i class="fas fa-info pr-1 text-warning"></i>更多
                    </button>
                  </div>

                  <div class="float-right">
                    1-50/200
                    <div class="btn-group">
                      <button type="button" class="btn btn-default btn-sm">
                        <i class="fas fa-chevron-left"></i>
                      </button>
                      <button type="button" class="btn btn-default btn-sm">
                        <i class="fas fa-chevron-right"></i>
                      </button>
                    </div>
                    <!-- /.btn-group -->
                  </div>
                  <!-- /.float-right -->
                </div>
                <div class="table-responsive mailbox-messages">
                  <table class="table table-hover lqp-table">
                    <thead>
                    <tr>
                      <th></th>
                      <th>编号</th>
                      <th>分类</th>
                      <th>题目</th>
                      <th>创建时间</th>
                      <th>状态</th>
                      <th>操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr id="tr1">
                      <td>
                        <div class="form-check">
                          <input type="checkbox" value="0" id="check1" class="form-check-input">
                          <label for="check1" class="form-check-label"></label>
                        </div>
                      </td>
                      <td class="mailbox-star">10</td>
                      <td class="mailbox-name">单选题</td>
                      <td class="mailbox-subject">选黑还是白</td>
                      <td class="mailbox-attachment">2020-04-04 12：12</td>
                      <td class="mailbox-date">正常</td>
                      <td>
                          <button type="button" class="btn btn-success btn-xs text-xs data-edit" data-toggle="modal"
                                  data-target="#modal-xl" data-lqp="999">
                            <i class="fas fa-edit pr-1"></i> 编辑
                          </button>
                          <button type="button" class="btn btn-danger btn-xs text-xs delsingle">
                            <i class="fa fa-trash pr-1" aria-hidden="true"></i> 删除
                          </button>
                          <button type="button" class="btn btn-info btn-xs text-xs" data-toggle="modal"
                                  data-target="#modal-xl-info">
                            <i class="fas fa-info pr-1"></i> 详情
                          </button>
                      </td>
                    </tr>
                    <tr id="tr2">
                      <td>
                        <div class="form-check">
                          <input type="checkbox" value="1" id="check10" class="form-check-input">
                          <label for="check10" class="form-check-label"></label>
                        </div>
                      </td>
                      <td class="mailbox-star">10</td>
                      <td class="mailbox-name">单选题</td>
                      <td class="mailbox-subject">选黑还是白</td>
                      <td class="mailbox-attachment">2020-04-04 12：12</td>
                      <td class="mailbox-date">正常</td>
                      <td>
                          <button type="button" class="btn btn-success btn-xs text-xs" data-toggle="modal"
                                  data-target="#modal-xl">
                            <i class="fas fa-edit pr-1"></i> 编辑
                          </button>
                          <button type="button" class="btn btn-danger btn-xs text-xs delsingle">
                            <i class="fa fa-trash pr-1" aria-hidden="true"></i> 删除
                          </button>
                          <button type="button" class="btn btn-info btn-xs text-xs" data-toggle="modal"
                                  data-target="#modal-xl-info">
                            <i class="fas fa-info pr-1"></i> 详情
                          </button>
                      </td>
                    </tr>
                    </tbody>
                  </table>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </section>
  </div>
  <!--                新增/编辑 按鈕彈框-->
  <div class="modal fade" id="modal-xl">
    <div class="modal-dialog modal-xl modal-dialog-centered">
      <div class="modal-content">
        <div class="modal-header">
          <h4 class="modal-title">新增试题</h4>
          <button type="button" class="close" data-dismiss="modal" aria-label="Close">
            <span aria-hidden="true">&times;</span>
          </button>
        </div>
        <form action="" id="addTestForm" method="post" onsubmit="return false">
          <div class="modal-body">
            <div class="row">
              <div class="col-md-12">
                <div class="card">
                  <div class="card-body">
                    <!--                  form-->

                    <div class="row">
                      <div class="col-6">
                        <div class="form-group row">
                          <label class="col-sm-4 col-form-label">
                            <i class="fas fa-star text-danger pr-2"></i>试题分类：</label>
                          <div class="col-sm-6">
                            <select class="form-control text-xs" name="testquestions">
                              <option value="0" selected="selected">单选题1</option>
                              <option value="1">单选题2</option>
                              <option value="2">单选题3</option>
                              <option value="3">单选题4</option>
                            </select>
                          </div>
                          <div class="col-sm-2">
                            <button type="button" class="btn btn-info btn-sm"><i
                              class="fas fa-plus-circle pr-1"></i>
                            </button>
                          </div>
                        </div>
                      </div>
                      <div class="col-4">
                        <div class="form-group row">
                          <label for="inputEmail3" class="col-sm-4 col-form-label"><i
                            class="fas fa-star text-danger pr-2"></i>难度：</label>
                          <div class="col-sm-8">
                            <select class="form-control" name="difficulty">
                              <option value="0">一般</option>
                              <option value="1">难</option>
                              <option value="2">易</option>
                            </select>
                          </div>
                        </div>
                      </div>
                    </div>
                    <div class="row">
                      <div class="col-12">
                        <div class="form-group row">
                          <label class="col-sm-2 col-form-label"><i
                            class="fas fa-star text-danger pr-2"></i>试题内容：</label>
                          <div class="col-sm-10">
                            <textarea class="form-control" rows="3" placeholder="试题内容 ..." name="content"
                                      id="id1"></textarea>
                          </div>
                        </div>
                      </div>
                    </div>
                    <div class="row">
                      <div class="col-12">
                        <div class="row ">
                          <label class="col-sm-2 col-form-label"><i
                            class="fas fa-star text-danger pr-2"></i>选项内容：</label>
                          <div class="col-sm-10">
                            <div class="form-check form-group mb-2">
                              <input class="form-check-input" type="radio" name="spam[]" id="answercheckA" value="0">
                              <label class="form-check-label" for="answerA">
                                <input class="form-control" type="text" name="answerA" placeholder="请输入..."
                                       id="answerA">
                              </label>
                            </div>
                            <div class="form-check form-group mb-2">
                              <input class="form-check-input" type="radio" name="spam[]" id="answercheckB" value="1">
                              <label class="form-check-label" for="answerB">
                                <input class="form-control" type="text" name="answerB" placeholder="请输入..."
                                       id="answerB">
                              </label>
                            </div>
                            <div class="form-check form-group mb-2">
                              <input class="form-check-input" type="radio" name="spam[]" id="answercheckC" value="2">
                              <label class="form-check-label" for="answerC">
                                <input class="form-control" type="text" name="answerC" placeholder="请输入..."
                                       id="answerC">
                              </label>
                            </div>
                            <div class="form-check form-group mb-2">
                              <input class="form-check-input" type="radio" name="spam[]" id="answercheckD" value="3">
                              <label class="form-check-label" for="answerD">
                                <input class="form-control" type="text" name="answerD" placeholder="请输入..."
                                       id="answerD">
                              </label>
                            </div>
                          </div>
                        </div>
                        <div class="my-3">
                          <i class="fas fa-star text-danger pr-2"></i>正确答案：
                          <input name="answerdetail" class="answerdetail offset-1" type="text" value=""
                                 id="answerdetail">
                          <small class="text-xs text-gray">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(正确答案是被勾选到的选项)</small>
                        </div>
                      </div>
                    </div>
                    <div class="row">
                      <div class="col-12">
                        <div class="form-group row">
                          <label for="inputEmail3" class="col-sm-2 col-form-label"><i
                            class="fas fa-star pr-2"></i>试题解析：</label>
                          <div class="col-sm-10">
                            <textarea class="form-control" rows="3" name="detail" placeholder="试题解析 ..."></textarea>
                          </div>
                        </div>
                      </div>
                    </div>

                  </div>
                </div>
              </div>
            </div>
          </div>
          <div class="modal-footer justify-content-between">
            <button type="button" class="btn btn-info btn-sm">保存并继续添加</button>
            <button type="submit" class="btn btn-info btn-sm float-right">保存并关闭</button>
          </div>
        </form>
      </div>
    </div>
  </div>
  <!--                详情按鈕彈框-->
  <div class="modal fade" id="modal-xl-info">
    <div class="modal-dialog modal-xl modal-dialog-centered">
      <div class="modal-content">
        <div class="modal-header">
          <h4 class="modal-title">
            <button type="button" class="btn btn-info btn-sm" data-toggle="modal" data-target="#modal-lg">
              <i class="fas fa-edit pr-1"></i>编辑题目
            </button>
            <button type="button" class="btn btn-info btn-sm"><i class="fa fa-trash pr-1"
                                                                 aria-hidden="true"></i>删除题目
            </button>
          </h4>
          <button type="button" class="close" data-dismiss="modal" aria-label="Close">
            <span aria-hidden="true">&times;</span>
          </button>
        </div>
        <div class="modal-body">
          <div class="row">
            <div class="col-md-6">
              <div class="card">
                <div class="card-header card-outline card-secondary">
                  <h3 class="card-title">查看试题详情信息</h3>
                </div>
                <div class="card-body">
                  <div class="card">
                    <div class="card-header">
                      <h3 class="card-title text-info">【单选题】你是谁？</h3>
                    </div>
                    <div class="card-body">
                      <ul class="nav nav-pills flex-column mb-3">

                        <li class="nav-item border-bottom-0 pb-1">
                          <i class="far fa-circle text-danger pr-2"></i>
                          A,AAAA
                        </li>
                        <li class="nav-item">

                          <i class="far fa-circle text-warning pr-2"></i>
                          B,BBB

                        </li>

                      </ul>
                      <div class="text-info my-1">正确答案：A</div>
                      <div class="text-info mb-3">题目难度：困难</div>
                      <div class="text-gray text-sm">分类：单选题 | 创建者：ADMIN | 创建时间：2020-02-02 12：12：12 | 总回答数：
                        111次
                      </div>
                    </div>
                    <!-- /.card-body -->
                  </div>
                </div>
              </div>
            </div>
            <div class="col-md-6">
              <div class="card">
                <div class="card-header card-outline card-secondary">
                  <h3 class="card-title">试题分析</h3>
                </div>
                <div class="card-body">
                  <div class="row">
                    <div class="col-6">
                      <div class="card text-center">
                        <div class="card-header">
                          <h6 class="text-center">试题对错率分布</h6>
                        </div>
                        <div class="card-body mt-1">
                          <img src="../../dist/img/user1-128x128.jpg" alt="User Image">
                          <ul class="nav nav-pills flex-column my-3">
                            <li class="nav-item border-bottom-0 pb-1">
                              <i class="far fa-circle text-danger pr-2"></i>
                              对,10%
                            </li>
                            <li class="nav-item">

                              <i class="far fa-circle text-warning pr-2"></i>
                              错,10%

                            </li>

                          </ul>
                        </div>
                      </div>
                    </div>
                    <div class="col-6">
                      <div class="card text-center">
                        <div class="card-header ">
                          <h6 class="text-center">历史选择率</h6>
                        </div>
                        <div class="card-body mt-1">
                          <img src="../../dist/img/user1-128x128.jpg" alt="User Image">
                          <ul class="nav nav-pills flex-column my-3">
                            <li class="nav-item border-bottom-0 pb-1">
                              <i class="far fa-circle text-danger pr-2"></i>
                              A,10%
                            </li>
                            <li class="nav-item border-bottom-0">
                              <i class="far fa-circle text-warning pr-2"></i>
                              B,10%
                            </li>
                          </ul>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
          <div class="row">
            <div class="col-md-12">
              <div class="card card-outline card-info">
                <div class="card-header">
                  <h3 class="card-title">已使用试卷张数：<span class="badge bg-danger">55</span></h3>
                </div>
                <!-- /.card-header -->
                <div class="card-body">
                  <table class="table table-bordered">
                    <thead>
                    <tr>
                      <th>序号</th>
                      <th>考卷名称</th>
                      <th>创建时间</th>
                      <th>考试次数</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr>
                      <td>1.</td>
                      <td>Update software</td>
                      <td>
                        <div class="progress progress-xs">
                          <div class="progress-bar progress-bar-danger" style="width: 55%"></div>
                        </div>
                      </td>
                      <td><span class="badge bg-danger">55%</span></td>
                    </tr>

                    </tbody>
                  </table>
                </div>
                <!-- /.card-body -->
                <div class="card-footer clearfix">
                  <ul class="pagination pagination-sm m-0 float-right">
                    <li class="page-item"><a class="page-link text-danger" href="#">«</a></li>
                    <li class="page-item"><a class="page-link text-info" href="#">1</a></li>
                    <li class="page-item"><a class="page-link text-info" href="#">2</a></li>
                    <li class="page-item"><a class="page-link text-info" href="#">3</a></li>
                    <li class="page-item"><a class="page-link text-danger" href="#">»</a></li>
                  </ul>
                </div>
              </div>
            </div>

          </div>
        </div>
      </div>
    </div>
  </div>


  <!--  底部-->
  <footer class="main-footer">
    <strong>Copyright &copy; 2014-2020 <a href="">汇邦科技有限公司</a>.</strong>All rights reserved.
  </footer>
  <aside class="control-sidebar control-sidebar-dark">
  </aside>
</div>

<!-- jQuery -->
<script src="../../plugins/jquery/jquery.min.js"></script>
<!-- Bootstrap 4 -->
<script src="../../plugins/bootstrap/js/bootstrap.bundle.min.js"></script>

<!-- jquery-validation 提示-->
<script src="../../plugins/jquery-validation/jquery.validate.min.js"></script>
<script src="../../plugins/jquery-validation/additional-methods.min.js"></script>

<!-- AdminLTE App -->
<script src="../../dist/js/adminlte.min.js"></script>
<!-- AdminLTE for demo purposes -->
<script src="../../dist/js/demo.js"></script>
<script src="../../dist/layer/layer.js"></script>
<!-- Page specific script -->

<script>
  $(function () {
    //Enable check and uncheck all functionality 批量
    $('.checkbox-toggle').click(function () {
      var clicks = $(this).data('clicks')
      console.log('clicks------------' + clicks)
      if (clicks) {
        //Uncheck all checkboxes
        $('.mailbox-messages input[type=\'checkbox\']').prop('checked', false)
        $('.checkbox-toggle .far.fa-check-square').removeClass('fa-check-square').addClass('fa-square')
      } else {
        //Check all checkboxes
        $('.mailbox-messages input[type=\'checkbox\']').prop('checked', true)
        $('.checkbox-toggle .far.fa-square').removeClass('fa-square').addClass('fa-check-square')
      }
      $(this).data('clicks', !clicks)
    })

    //Handle starring for font awesome 单条
    $('.mailbox-star').click(function (e) {
      e.preventDefault()
      //detect type
      var $this = $(this).find('a > i')
      var fa = $this.hasClass('fa')

      //Switch states
      if (fa) {
        $this.toggleClass('fa-star')
        $this.toggleClass('fa-star-o')
      }
    })
  })
</script>
<!--新增获取表单数据-->
<script>
  $(function () {

    //设置默认值
    $.validator.setDefaults({
      submitHandler: function (form) {
        console.log($(form).serializeArray());
        let arr = [];
        $('input:radio:checked').each(function () {
          arr.push($(this).val());
        })
        console.log("单选框值" + arr)

        let answerdetail = "";
        arr.forEach(function () {//选中项对应的值
          if (arr == "0") {
            answerdetail = $('#answerA').val();
          }
          if (arr == "1") {
            answerdetail = $('#answerB').val();
          }
          if (arr == "2") {
            answerdetail = $('#answerC').val();
          }
          if (arr == "3") {
            answerdetail = $('#answerD').val();
          }
        })

        if (!arr.length) {
          layer.msg('请勾选正确答案！', {icon: 5, time: 1500})
        }
        console.log('answerdetail------------' + answerdetail)
        $("#answerdetail").val(answerdetail);


        var str = document.getElementById("id1").value;
        console.log(str);
        if (str.indexOf(" ") > -1) {
          layer.msg('输入试题内容包含空格！', {icon: 5, time: 1500})
          return false;
        }


        return false;
        $.ajax({
          url: 'url',
          // data: {name: 'lqp', age: '18', sex: 0},
          // data: 'name=lqp&age=10',
          data: $(form).serializeArray(),
          dataType: 'json',
          success: function (res) {

          }
        })
      }
    });
    //表单验证
    $('#addTestForm').validate({
      rules: {
        content: {
          required: true,
        },
        answerA: {
          required: true,
        },
        answerB: {
          required: true,
        },
        answerC: {
          required: true,
        },
        answerD: {
          required: true,
        },


      },
      messages: {
        content: {
          required: "请输入试题内容！",
          minlength: "请输入最少一个字符！"
        },
        answerA: {
          required: "请输入试题选项！",
        },
        answerB: {
          required: "请输入试题选项！",
        },
        answerC: {
          required: "请输入试题选项！",
        },
        answerD: {
          required: "请输入试题选项！",
        },


      },
      errorElement: 'span',
      errorPlacement: function (error, element) {
        error.addClass('invalid-feedback');
        element.closest('.form-group').append(error);
      },
      highlight: function (element, errorClass, validClass) {
        $(element).addClass('is-invalid');
      },
      unhighlight: function (element, errorClass, validClass) {
        $(element).removeClass('is-invalid');
      }
    });


  });
</script>
<!--删除行-->
<script>
  $(function () {
    //批量删除
    $('.batchdel').click(function (e) {
      let trIds = [];
      let checks = $('.lqp-table input:checkbox:checked');
      for (let i = 0; i < checks.length; i++) {
        trIds.push(checks[i].id);
      }
      console.log('trIds', trIds)
    })
    // 获取行id
    // $('.data-id').click(function () {
    //   console.log($(this).attr('id'))
    // })
    //删除行
    $('.delsingle').click(function () {
      console.log($(this).parent().parent().attr('id'))
    })
  })
</script>

</body>
</html>
